<%@page import="siniflar.DersOgrenci"%>
<%@ page import="java.util.ArrayList" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="ogrenci" class="siniflar.Ogrenci" scope="session" />
<jsp:useBean id="ogrenciOnaylananDersler" type="ArrayList<siniflar.DersOgrenci>" scope="session" />

<jsp:include page="../ek_bas.jsp" />
<title>Ders Kaydı</title>
<jsp:include page="ek_menu.jsp" />
<h1 class="icbaslik derskaydiicon">Ders Kaydı</h1>
    
<%
    out.print("<table>");
    out.print("<tr class=\"tablobaslik\">");
        out.print("<td colspan=\"5\" class=\"ortali altkenarlikli\">Onaylanan Dersleriniz</td>");     
    out.print("</tr>");
    out.print("<tr class=\"tablobaslik\">");
        out.print("<td class=\"altkenarlikli\">Ders Kodu</td>");
        out.print("<td class=\"altkenarlikli\">Ders Adı</td>");
        out.print("<td class=\"altkenarlikli\">Ders Kredisi</td>");
    out.print("</tr>");
    for(int i=0; i<ogrenciOnaylananDersler.size(); i++) {
        out.print("<tr class=\"r"+(i%2)+"\">");
            out.print("<td>" + ogrenciOnaylananDersler.get(i).getDers().getDersKodu() + "</td>");
            out.print("<td>" + ogrenciOnaylananDersler.get(i).getDers().getDersAdi() + "</td>");
            out.print("<td>" + ogrenciOnaylananDersler.get(i).getDers().getDersKredi() + "</td>");
        out.print("</tr>");
    }
    out.print("</table>");
%>

<jsp:include page="../ek_son.jsp" />
